Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX release] Allows @each to work with arrays that contain falsy … #18477

Merged
merged 1 commit into from
Oct 25, 2019

Conversation

pzuraq
Copy link
Contributor

@pzuraq pzuraq commented Oct 9, 2019

…values

This matches the original behavior as seen in the each_proxy.

Fixes #18474

// should throw no errors
obj.falsyComputed;

assert.throws(() => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn’t this be expectAssertion?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, correct, wonder why prod tests didn't catch that

…values

This matches the original behavior as seen in the each_proxy.
@pzuraq pzuraq force-pushed the bugfix/allow-each-towork-with-falsy-values branch from 8698e09 to 8efb331 Compare October 9, 2019 17:39
Copy link
Member

rwjblue commented Oct 9, 2019

Makes me worry that they are broken somehow 🤔

We should investigate...

@chancancode chancancode added this to the 3.14 milestone Oct 25, 2019
@pzuraq pzuraq merged commit 96d1269 into master Oct 25, 2019
@pzuraq pzuraq deleted the bugfix/allow-each-towork-with-falsy-values branch October 25, 2019 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[3.13] Regression when using @each on an array with undefined elements
4 participants